input output tables find the rule